package org.example.ch04.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.ch04.entity.User;

import javax.lang.model.element.Name;

/**
 * ClassName: UserMapper
 * Description:
 *
 * @Author zjl
 * @Create 2025/04/23 10:34
 * @Version 1.0
 */
public interface UserMapper {

    /**
     * 根据id查询user
     * @param id
     * @return
     */
    User getUserById(int id);

    /**
     * 多个条件查询
     * @param name
     * @param age
     * @return
     */
    User getUser(@Param("name") String name, @Param("age") int age);
}
